<{include file="public/header" title='考试历史记录-'/}>
<style>
  html, body {width: 100%;height: 100%; margin: 0px;  padding: 0px; background-color: ;}
  .title{text-align: center;font-size: 15px;line-height: 40px;}
  .answerborder{border: #ccc 2px solid;border-radius:5px;padding: 2px 5px 0px 5px;}
  hr {height: 1px;/* margin: 10px 0; */ border: 0;clear: both;}
  .layui-col-md6{margin:0;border-bottom: #ccc 1px solid; padding: 3px;margin-bottom: -1px;}
  .clock{width: 100%;height: 30px;background-color: #FAEBD7;position:fixed;top:0px;left:0px;z-index:999;}
img{height: auto; max-width: 100%;}
.stuanswers img{padding: 5 0px;}
.layui-form-item{margin-bottom:5px;clear:both;*zoom:1;}
.tkempty{font-size: 100px;color: #eeeeee;text-align: center;}
.layui-form-item .layui-input-inline{float:left;width:20px;margin-right:10px;margin:2px 10px;}

</style>

<body style="padding-top: 25px;">

  <div class="layui-container" >
  	<div class="layui-row">&nbsp;</div>
	<div class="layui-row title" >
		<b><{$myexam.getexams.title}></b>
		<p><button class="layui-btn layui-btn-xs layui-btn-normal"><{$myexam.total}>分</button></p>
	</div>
	<div class="layui-row title" >
		<{$myexam.getexams.description}>
	</div>
	<form class="layui-form">
	<{volist name="qdata" id="vo"}>
		<div class="layui-row" style="padding: 5px 0;">
			<{$vo.sort > floor($vo.sort) ? '' : $vo.sort.'、'}><{$vo.qtitle}>
			
		</div>
		<{switch name="vo.qtype"}>
		    <{case value="1"}>
		    	<div class="layui-row answerborder" >
		    	<{volist name="vo.getanswers" id="vi"}>
			    	<div class="layui-col-md6 ">
			    	<input type="radio" name="answer[<{$vo.qid}>]" value="<{$vi.aid}>" title="" <{eq name="vi.aid" value="$myexam['answers'][$vo.qid]"}>checked<{/eq}>> <{$vi.answercontent}>
            <{eq name="vi.aid" value="$vo['rightanswer']"}><span style="color: red">(正确答案)</span><{/eq}>
			    	</div>
		    	<{/volist}>
		    	</div>
          <p style="color: #009688 ;padding:10px;">此题得分为<{$myexam['score'][$vo.qid]}>分</p>
		    <{/case}>
		    <{case value="2"}>
		    	<div class="layui-row answerborder" >
		    	<{volist name="vo.getanswers" id="vi"}>
			    	<div class="layui-col-md6 ">
			    	<div class="layui-form-item">	<div class="layui-input-inline">
			    	<input type="checkbox" name="answer[<{$vo.qid}>][]" value="<{$vi.aid}>" title="" lay-skin="primary" <{in name="vi.aid" value="$myexam['answers'][$vo.qid]"}>checked<{/in}> >
			    	</div>  
			    	<div style="vertical-align:middle;padding-top: 10px;"><{$vi.answercontent}><{in name="vi.aid" value="$vo['rightanswer']"}><span style="color: red">(正确答案)</span><{/in}></div>
            		</div>
			    	</div>
		    	<{/volist}>
		    	</div>
          <p style="color: #009688 ;padding:10px;">此题得分为<{$myexam['score'][$vo.qid]}>分</p>
		    <{/case}>
		    <{default /}>
		    	<div class="layui-row answerborder" >
		    		<div class="stuanswers"><{$myexam['answers'][$vo.qid]|htmlspecialchars_decode|default="<b class='tkempty'>空</b>"}>
		    		</div>
		    	</div>
		    	<p style="color: #009688 ;padding:10px;">此题得分为<{$myexam['score'][$vo.qid]}>分</p>
		    	
		    	<div class="layui-inline">
			      <label class="layui-form-label" style="width: 130px;text-align: left;color: #FF5722;padding-right: 0px;">此题人工判卷得分为</label>
			      <div class="layui-input-inline" style="width: 100px;">
			        <select name="score[$vo.qid]" lay-verify="required" lay-search class="scoreselect">
			          <option value="null">选择分数</option>
			          <{for start="0" end="$vo.score" comparison="elt"}>
			          <option value="<{$i}>" <{heq name="$i" value="$myexam['score'][$vo.qid]"}>selected<{/heq}>><{$i}></option>
			          <{/for}>
			        </select>
			      </div>
			       <span style="width: 10px;text-align: left;color: #FF5722">分</span>
			    </div>
				

		<{/switch}>
		
	   
	
  	<{/volist}>
  	
  	
  	<div class="layui-row" style="margin-top: 30px;">
    	<!-- <button class="layui-btn layui-btn-fluid" lay-submit id="select" lay-filter="answersub" type = "button">立即提交</button> -->
  	</div>
  		
  	</form>
  </div>
   
  








	<div style="height: 50px;"></div>
  <div class="layui-footer" style="text-align: center;">
            <!-- 底部固定区域 -->
            &copy; 2020 |&nbsp;<img src="" alt=""> <{$Think.config.app_name}> | <{$Think.config.site_name}> | Design by <a href="javascript:;" id="me"> hxb0810</a>

  </div>








  
 




<script>
//JavaScript代码区域
layui.use(['element','jquery','layer','form'], function(){
  var element = layui.element,$ = layui.$,layer=layui.layer,form=layui.form;
  $('.stuanswers img').bind('click',function(){
  	//alert($(this).attr('src'));
  	layer.open({
	  type: 1,
	  title: false,
	  closeBtn: 1,
	  area: ['auto'],
	  skin: 'layui-layer-nobg', //没有背景色
	  shadeClose: true,
	  content: '<div><img src="'+$(this).attr('src')+'" alt="" /></div>'
	});
  });
  
});

</script>
</body>
</html>